package first

class AddressController {

    def index() {}

    def createAddress(){

    }

    def createAddressAction (){
        def address = new Address();
        address.save();
        redirect action: "show";
    }

    def showAddress(){

        List <Address> addressList = Address.findAll();
        [addressList: addressList];


    }


}
